package psnl.bingo.mr.demo4;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.RecordWriter;
import org.apache.hadoop.mapreduce.TaskAttemptContext;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;

import java.io.IOException;

public class D4OutputFormat extends FileOutputFormat<D4Line, NullWritable> {
    @Override
    public RecordWriter<D4Line, NullWritable> getRecordWriter(TaskAttemptContext job) throws IOException, InterruptedException {
        return new D4RecordWriter(job);
    }
}
